<!DOCTYPE html>
<html>
<head>
	<title>收藏窗口</title>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
</head>
<style type="text/css">
.aui-bar {padding-top: 20px;}
</style>
<body>
<header id="header" class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn" onclick="api.closeWin();">
        <span class="aui-iconfont aui-icon-left">取消</span>
    </a>
    <div class="aui-title">写日报</div>
    <span onclick="addDaily();" style="float:right;margin-right:0.75rem;">发表</span>
</header>


<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript">
    apiready = function(){
        var header = $api.byId('header');
	      var headerOffset = $api.offset(header);

        api.parseTapmode();
      	api.openFrame ({
               name: 'daily_frm',
               url: 'daily_frm.html',
               rect:{
                   x:0,
                   y:headerOffset.h,
                   w:'auto',
                   h:api.frameHeight-headerOffset.h
               },
               pageParam: {
              },
               bounces:true,
               vScrollBarEnabled:false,
               hScrollBarEnabled:false
           });

      }

			function addDaily(){
					var addDaily = 'addDaily();';
					api.execScript({
						frameName: 'daily_frm',
						script: addDaily
					});
			}

</script>
</body>
</html>
